package OfferCode;

import java.util.HashSet;
import java.util.Set;

/**
 * @Author Kechelle
 * @Date 2020/9/21 19:44
 * @Version 1.0
 */
public class Code53_1 {
    public static int search(int[] nums,int target){
        int count = 0;
        for (int num:nums){
            if (num == target) count++;
        }
        return count;
    }

    public static void main(String[] args) {
        int[] nums = {5,7,7,8,8,10};
        System.out.println(search(nums,8));
    }
}
